import { Component, OnInit, Input } from '@angular/core';
import { MenuService } from 'src/app/core/menu/menu.service';
import { MenuVo } from 'src/app/shared/models';

@Component({
    selector: 'app-sidebar',
    templateUrl: './sidebar.component.html',
    // styleUrls: ['./sidebar.component.scss']
})
export class AppSidebarComponent implements OnInit {
    @Input() isCollapsed: boolean;

    menuList: Array<MenuVo>;

    constructor(private menu: MenuService) {
        this.menuList = this.menu.initMenuListByRole();
    }

    ngOnInit(): void { }
}
